package com.dict.service;

import com.dict.pojo.Dict;
import com.baomidou.mybatisplus.extension.service.IService;
import com.dict.pojo.ExcelDTO;

import java.io.InputStream;
import java.util.List;

/**
* @author 宋伟宁
* @description 针对表【dict(数据字典)】的数据库操作Service
* @createDate 2024-03-06 14:59:30
*/
public interface DictService extends IService<Dict> {

    void importData(InputStream inputStream);

    List<ExcelDTO> listDictData();


    List<Dict> listByParentId(Long parentId);

    Boolean checkDictByName(String name);

    Boolean addDict(Long pid, String name);


    List<Dict> selectAll();
}
